package restful;

public class RestfulProtocolLoader {

	private final RestfulProtocol restfulProtocol;

	public RestfulProtocolLoader(String className) {

		try {
			restfulProtocol = (RestfulProtocol) getClass().getClassLoader().loadClass(className).newInstance();
		} catch (final Exception e) {
			throw new RuntimeException(e);
		}
	}

	public RestfulProtocol getRestfulProtocol() {
		return restfulProtocol;
	}

}
